package com.zpb.framework.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zpb.framework.domain.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Author: zhaopengbo
 * @Date: 2025/9/18
 */
public interface RoleMapper extends BaseMapper<Role> {
    public List<String> getRoleKeysByUserId(@Param("userId") Long userId);

    public Long getRoleIdByUserId(@Param("userId") Long userId);

    public int insertRoleMenuByMenuId(@Param("id") Long id, @Param("menuIds") List<Long> menuIds);
}
